<div class="breadcrumbwidget">
	<ul class="skins">
        <li><a href="default" class="skin-color default"></a></li>
        <li><a href="orange" class="skin-color orange"></a></li>
        <li>&nbsp;</li>
        <li class="fixed"><a href="" class="skin-layout fixed"></a></li>
        <li class="wide"><a href="" class="skin-layout wide"></a></li>
    </ul><!--skins-->
	<ul class="breadcrumb">
        <li><a href="<?php echo $baseurl?>">Trang chủ</a> <span class="divider">/</span></li>
        <li class="active">Danh sách review</li>
    </ul>
</div><!--breadcrumbwidget-->
<div class="pagetitle">
	<h1>Quản lý danh sách review</h1> <span></span>
</div>
<div class="maincontent">
    <div class="contentinner">    
    
        <?php $attr = array('class' => 'stdform','id' => 'form-list'); echo form_open('', $attr);?>

    	<table class="table table-bordered">
            <colgroup>
                <col class="con0" />
                <col class="con1" />
                <col class="con0" />
                <col class="con1" />
                <col class="con0" />
                <col class="con1" />
            </colgroup>
            <thead>
                <tr>
                	<th class="centeralign" style="width: 5%;"><input type="checkbox" class="checkall" /></th>
                    <th>Tên nhà hàng</th>
					<th>Thành viên</th>
                    <th>Nội dung</th>
                   <th>Số sao</th>
				   <th>Phê duyệt</th>
				   <th>Ngày đăng</th>
                    <th class="centeralign" style="width: 10%">Tác vụ</th>
                </tr>
            </thead>
            <tbody>
			
			<?php //'<pre>'.print_r($data);?>
            <?php if(!in_array($data, array(null, '', '0'))):?>
            <?php
                $i = 1;
             foreach($data['data'] AS $el=>$le):
				
            
            ?>
                <tr>
                	<td class="centeralign"><input name="checkboxs[]" id="<?php echo $le->id?>" type="checkbox" value="<?php echo $le->rid?>" /></td>
                   <td>
                       <?php echo $le->name_res ? $le->name_res : 'Đang cập nhật';?>
                    </td>
                   <td><?php echo $le->fullname ? $le->fullname : 'Đang cập nhật';?></td>
                    <td><?php echo $le->content ? $fview->printstr($le->content,16) : 'Đang cập nhật';?></td>
					 <td><?php for ( $i = 0; $i < $le->star; $i ++){
					 echo "<span class='icon-star'></span>";
					 }?></td>
					 
					 <td>
                       <?php if( $le->improved == 1 ){ echo "<span class='icon-ok'></span>"; }  ;?>
                    </td>
					<td>
                       <?php echo date('d-m-Y H:i:s', $le->created);?>
                    </td>
                    <td class="centeralign">
                        <a href="<?php echo $baseurl.'manage/review/edit-review/'.$le->rid?>" class=""><span class="icon-edit"></span></a>
                        <a href="<?php echo $baseurl.'manage/review/delete-review/'.$le->rid?>" class="delete-a"><span class="icon-trash"></span></a>   
                    </td>
                </tr>
            <?php endforeach;?>
            <?php endif?>
            </tbody>
        </table>
        <div class="dataTables_info" id="dyntable_info">
            <div class="pagination">
                <?php echo $this->pagination->create_links();?> 
            </div>
        </div>
        </form>
    </div>
</div>
<style>
.table th, .table td {
vertical-align: middle !important;
}
</style>